package com.ponhu.ea2.stockcenter.service.bms;

import com.ponhu.ea2.stockcenter.vo.ReturnResponseBean;

import java.util.List;

/**
 * @author Wang
 * @date 2021/10/20 4:01 下午
 */
public interface StockForGoodsCenterService {
    /**
     * 创建并初始化虚拟类货品库存数据
     * @param goodsId 商品Id
     * @param inventoryId 货品Id
     * @param inventoryCode 货品编码
     * @param stockNumber 库存数量
     */
    public boolean createAndInitUnRealStockData(Long goodsId, Long inventoryId, String inventoryCode, int stockNumber);

    /**
     * 创建并初始化实物类库存数据
     * @param goodsId 商品Id
     * @param inventoryId 货品Id
     * @param inventoryCode 货品编码
     * @param stockNumber 库存数量
     */
    public boolean createAndInitRealStockData(Long goodsId, Long inventoryId, String inventoryCode, int stockNumber);

    /**
     * 添加一个虚拟可售库存
     * @param inventoryCodeList
     * @return
     */
    public ReturnResponseBean<Boolean> addOneVirtualSalesStockData(List<String> inventoryCodeList);

    /**
     * 减少一个虚拟可售库存
     * @param inventoryCodeList
     * @return
     */
    public ReturnResponseBean<Boolean> deleteVirtualSalesStockData(List<String> inventoryCodeList);



}
